Xbasic
FILL_SHAPE Function
Syntax
V FILL_SHAPE(C shape_name,N XPos,N YPos)
Arguments
- shape_name
The name of the shape to draw on the bitmap.
- XPos
The horizontal coordinate of the upper left corner of the shape. Larger values move right.
- YPos
The vertical coordinate of the upper left corner of the shape. Larger values move down.
Description
Draw a filled shape.
Discussion
The FILL_SHAPE() draws a shape on the bitmap. The fill is set by the current brush and the border is set by the current pen. Compare to the SHAPE()and INNER_SHAPE()functions.
put description here
ui_bitmap_create("test", 4, 2) ui_shape_oval("oval", .25, .25, 2, 1) ui_bitmap_draw("test", <<%code% inner_rect(0, 0, 4, 2) set_pen("black") set_brush("green") fill_shape("oval", 0, 0) %code%) ui_dlg_box("", "{image=test}")
Limitations
Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().
See Also